package action;

import java.util.Scanner;

import command.CommandProcessor;
import command.CommandProcessorImpl;

public class CommandAction {
	
	public void action(){
		System.out.println("please input command");
		Scanner scanner = new Scanner(System.in);
		CommandProcessor commandProcessor = new CommandProcessorImpl();
		while (scanner.hasNext()) {
			commandProcessor.process(scanner.nextLine());
		}
	}

	
	public static void main(String[] args) {
		new CommandAction().action();
	}
}
